//
//  HWLayoutAttributes.swift
//  HWBanner
//
//  Created by fuyoufang on 2021/10/14.
//

import UIKit

enum BannerState {
    case none
    case animationStage(progress: CGFloat) // 第一阶段、跟随 scrollView 的滚动
}

class HWLayoutAttributes: UICollectionViewLayoutAttributes {
    var bannerSate: BannerState = .none

    override func copy(with zone: NSZone? = nil) -> Any {
        let new = super.copy(with: zone)
        if let new = new as? HWLayoutAttributes {
            new.bannerSate = self.bannerSate
        }
        return new
    }
}
